﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_GetData : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvTaiKhoanChu")]
        private ADVAccount _AdvTaiKhoanChu;
        [AccessedThroughProperty("AdvTaiKhoanThue")]
        private ADVAccount _AdvTaiKhoanThue;
        [AccessedThroughProperty("AdvTKChietKhau")]
        private ADVAccount _AdvTKChietKhau;
        [AccessedThroughProperty("AdvTKDoanhThu")]
        private ADVAccount _AdvTKDoanhThu;
        [AccessedThroughProperty("AdvTKGiaVon")]
        private ADVAccount _AdvTKGiaVon;
        [AccessedThroughProperty("AdvTKHangHoa")]
        private ADVAccount _AdvTKHangHoa;
        [AccessedThroughProperty("CboKho")]
        private ComboBox _CboKho;
        [AccessedThroughProperty("CKXoaDuLieu")]
        private CheckBox _CKXoaDuLieu;
        [AccessedThroughProperty("CmdAn")]
        private Button _CmdAn;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("CmdSave")]
        private Button _CmdSave;
        [AccessedThroughProperty("CmdTuyChon")]
        private Button _CmdTuyChon;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label26")]
        private Label _Label26;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("TxtData")]
        private TextBox _TxtData;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtPass")]
        private TextBox _TxtPass;
        [AccessedThroughProperty("TxtTenMay")]
        private TextBox _TxtTenMay;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("TxtUser")]
        private TextBox _TxtUser;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsDataChiNhanh objDT;

        public Frm_GetData()
        {
            base.Load += new EventHandler(this.Frm_GetData_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objDT = new clsDataChiNhanh();
            this.InitializeComponent();
        }

        public bool BulkData()
        {
            bool flag=false;
            try
            {
                string commandText = " DELETE FROM ST_XuatKhoO ";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                commandText = " DELETE FROM ST_XuatKhoChiTietO ";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                SQLBulkModules.BulkHoaDonBanHang(" WHERE NgayChungTu Between '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' And '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "'");
                SQLBulkModules.BulkHoaDonChiTiet(" WHERE NgayXuat Between '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' And '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "'");
                IDataParameter[] commandParameters = new IDataParameter[] { DBHelper.createParameter("@KhoaKho", DbType.Int64, ParameterDirection.Input, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKho.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim()), DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT), DBHelper.createParameter("@KhoaTKThanhToan", DbType.Int64, ParameterDirection.Input, this.AdvTaiKhoanChu.Value), DBHelper.createParameter("@KhoaTKDoanhThu", DbType.Int64, ParameterDirection.Input, this.AdvTKDoanhThu.Value), DBHelper.createParameter("@KhoaTKThue", DbType.Int64, ParameterDirection.Input, this.AdvTaiKhoanThue.Value), DBHelper.createParameter("@KhoaTKChietKhau", DbType.Int64, ParameterDirection.Input, this.AdvTKChietKhau.Value), DBHelper.createParameter("@KhoaTKHangHoa", DbType.Int64, ParameterDirection.Input, this.AdvTKHangHoa.Value), DBHelper.createParameter("@KhoaTKGiaVon", DbType.Int64, ParameterDirection.Input, this.AdvTKGiaVon.Value), DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0) };
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "HT_ReceiveDataFromClient", commandParameters);
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                LVYModule.ShowWarning(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        private void CmdAn_Click(object sender, EventArgs e)
        {
            this.Height = 270;
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.BulkData() && this.DeleteData())
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ ho\x00e0n tất.", ""));
            }
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            clsDataChiNhanh objDT = this.objDT;
            objDT.Load("01");
            objDT.TenMayChu = this.TxtTenMay.Text;
            objDT.DbUser = this.TxtUser.Text;
            objDT.DbPass = this.TxtPass.Text;
            objDT.DbName = this.TxtData.Text;
            objDT.Save();
            objDT = null;
        }

        private void CmdTuyChon_Click(object sender, EventArgs e)
        {
            this.Height = 460;
        }

        public bool DeleteData()
        {
            bool flag=false;
            try
            {
                if (this.CKXoaDuLieu.Checked)
                {
                    SQLBulkModules.DelHoaDonFromClient(" WHERE NgayChungTu Between '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' And '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "'");
                    SQLBulkModules.DelHoaDonChiTietFromClient(" WHERE NgayXuat Between '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' And '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "'");
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_GetData_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                BuildComboModule.BuildCombo(this.CboKho, modGeneral.ListDanhMuc.KhoHang, false, "", "");
                this.AdvTaiKhoanChu.SetDefault();
                this.AdvTaiKhoanThue.SetDefault();
                this.AdvTKChietKhau.SetDefault();
                this.AdvTKDoanhThu.SetDefault();
                this.AdvTKGiaVon.SetDefault();
                this.AdvTKHangHoa.SetDefault();
                this.LoadDataMayChu();
                this.Cursor = Cursors.Default;
            }
        }

        private string GetConnectionStringClient()
        {
            clsDataChiNhanh nhanh = new clsDataChiNhanh();
            nhanh.Load("01");
            string tenMayChu = "";
            string dbName = "";
            string dbUser = "";
            string dbPass = "";
            tenMayChu = nhanh.TenMayChu;
            dbName = nhanh.DbName;
            dbUser = nhanh.DbUser;
            dbPass = nhanh.DbPass;
            return ("Data Source=" + tenMayChu + ";Initial Catalog=" + dbName + ";User Id=" + dbUser + ";Password=" + dbPass + ";");
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_GetData));
            this.TxtDenNgay = new DateTimePicker();
            this.TxtTuNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.Label3 = new Label();
            this.GroupBox1 = new GroupBox();
            this.CboKho = new ComboBox();
            this.Label26 = new Label();
            this.AdvTKHangHoa = new ADVAccount();
            this.AdvTKGiaVon = new ADVAccount();
            this.AdvTKChietKhau = new ADVAccount();
            this.Label18 = new Label();
            this.Label17 = new Label();
            this.Label20 = new Label();
            this.Label6 = new Label();
            this.AdvTKDoanhThu = new ADVAccount();
            this.AdvTaiKhoanThue = new ADVAccount();
            this.AdvTaiKhoanChu = new ADVAccount();
            this.CKXoaDuLieu = new CheckBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.CmdTuyChon = new Button();
            this.TxtTenMay = new TextBox();
            this.TxtUser = new TextBox();
            this.TxtPass = new TextBox();
            this.TxtData = new TextBox();
            this.Label1 = new Label();
            this.GroupBox2 = new GroupBox();
            this.Label5 = new Label();
            this.Label4 = new Label();
            this.Label2 = new Label();
            this.CmdAn = new Button();
            this.CmdSave = new Button();
            this.GroupBox1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            this.SuspendLayout();
            this.TxtDenNgay.Format = DateTimePickerFormat.Short;
            Point point = new Point(270, 0x15);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            Size size = new Size(0x5b, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x35;
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x62, 0x15);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x56, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x34;
            DateTime time = new DateTime(0x7d7, 11, 1, 0, 0, 0, 0);
            this.TxtTuNgay.Value = time;
            this.Label13.AutoSize = true;
            point = new Point(14, 0x18);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x36;
            this.Label13.Text = "Từ ng\x00e0y";
            this.Label3.AutoSize = true;
            point = new Point(190, 0x18);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x37;
            this.Label3.Text = "Đến ng\x00e0y";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboKho);
            this.GroupBox1.Controls.Add(this.Label26);
            this.GroupBox1.Controls.Add(this.AdvTKHangHoa);
            this.GroupBox1.Controls.Add(this.AdvTKGiaVon);
            this.GroupBox1.Controls.Add(this.AdvTKChietKhau);
            this.GroupBox1.Controls.Add(this.Label18);
            this.GroupBox1.Controls.Add(this.Label17);
            this.GroupBox1.Controls.Add(this.Label20);
            this.GroupBox1.Controls.Add(this.Label6);
            this.GroupBox1.Controls.Add(this.AdvTKDoanhThu);
            this.GroupBox1.Controls.Add(this.AdvTaiKhoanThue);
            this.GroupBox1.Controls.Add(this.AdvTaiKhoanChu);
            this.GroupBox1.Controls.Add(this.CKXoaDuLieu);
            this.GroupBox1.Controls.Add(this.TxtDenNgay);
            this.GroupBox1.Controls.Add(this.TxtTuNgay);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label3);
            point = new Point(4, 6);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x189, 200);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x38;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.CboKho.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboKho.FormattingEnabled = true;
            point = new Point(0x62, 0x2f);
            this.CboKho.Location = point;
            this.CboKho.Name = "CboKho";
            size = new Size(0x107, 0x15);
            this.CboKho.Size = size;
            this.CboKho.TabIndex = 0x76;
            this.Label26.AutoSize = true;
            point = new Point(0x10, 0x33);
            this.Label26.Location = point;
            this.Label26.Name = "Label26";
            size = new Size(0x1a, 13);
            this.Label26.Size = size;
            this.Label26.TabIndex = 0x75;
            this.Label26.Text = "Kho";
            this.Label26.TextAlign = ContentAlignment.TopRight;
            this.AdvTKHangHoa.Conditions = "";
            this.AdvTKHangHoa.DefaultValue = "156";
            this.AdvTKHangHoa.FieldNameFilter = "";
            this.AdvTKHangHoa.KeyFilter = "";
            point = new Point(0x51, 0xca);
            this.AdvTKHangHoa.Location = point;
            Padding padding = new Padding(0);
            this.AdvTKHangHoa.Margin = padding;
            this.AdvTKHangHoa.Name = "AdvTKHangHoa";
            this.AdvTKHangHoa.OnlyDigit = false;
            this.AdvTKHangHoa.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTKHangHoa.Size = size;
            this.AdvTKHangHoa.TabIndex = 0x74;
            this.AdvTKHangHoa.UpperText = true;
            this.AdvTKHangHoa.Value = "";
            this.AdvTKHangHoa.WithCode = 80;
            this.AdvTKGiaVon.Conditions = "";
            this.AdvTKGiaVon.DefaultValue = "632";
            this.AdvTKGiaVon.FieldNameFilter = "";
            this.AdvTKGiaVon.KeyFilter = "";
            point = new Point(0x53, 0xe1);
            this.AdvTKGiaVon.Location = point;
            padding = new Padding(0);
            this.AdvTKGiaVon.Margin = padding;
            this.AdvTKGiaVon.Name = "AdvTKGiaVon";
            this.AdvTKGiaVon.OnlyDigit = false;
            this.AdvTKGiaVon.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTKGiaVon.Size = size;
            this.AdvTKGiaVon.TabIndex = 0x73;
            this.AdvTKGiaVon.UpperText = true;
            this.AdvTKGiaVon.Value = "";
            this.AdvTKGiaVon.WithCode = 80;
            this.AdvTKChietKhau.Conditions = "";
            this.AdvTKChietKhau.DefaultValue = "521";
            this.AdvTKChietKhau.FieldNameFilter = "";
            this.AdvTKChietKhau.KeyFilter = "";
            point = new Point(0x62, 150);
            this.AdvTKChietKhau.Location = point;
            padding = new Padding(0);
            this.AdvTKChietKhau.Margin = padding;
            this.AdvTKChietKhau.Name = "AdvTKChietKhau";
            this.AdvTKChietKhau.OnlyDigit = false;
            this.AdvTKChietKhau.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTKChietKhau.Size = size;
            this.AdvTKChietKhau.TabIndex = 0x72;
            this.AdvTKChietKhau.UpperText = true;
            this.AdvTKChietKhau.Value = "";
            this.AdvTKChietKhau.WithCode = 80;
            this.Label18.AutoSize = true;
            point = new Point(13, 0x99);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x4d, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x71;
            this.Label18.Text = "TK. chiết khấu";
            this.Label17.AutoSize = true;
            point = new Point(13, 0x81);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x4b, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 0x6f;
            this.Label17.Text = "TK. doanh thu";
            this.Label20.AutoSize = true;
            point = new Point(13, 0x67);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x30, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0x6d;
            this.Label20.Text = "TK. thuế";
            this.Label6.AutoSize = true;
            point = new Point(13, 0x4e);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x4e, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x6b;
            this.Label6.Text = "TK. thanh to\x00e1n";
            this.AdvTKDoanhThu.Conditions = "";
            this.AdvTKDoanhThu.DefaultValue = "511";
            this.AdvTKDoanhThu.FieldNameFilter = "";
            this.AdvTKDoanhThu.KeyFilter = "";
            point = new Point(0x62, 0x7d);
            this.AdvTKDoanhThu.Location = point;
            padding = new Padding(0);
            this.AdvTKDoanhThu.Margin = padding;
            this.AdvTKDoanhThu.Name = "AdvTKDoanhThu";
            this.AdvTKDoanhThu.OnlyDigit = false;
            this.AdvTKDoanhThu.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTKDoanhThu.Size = size;
            this.AdvTKDoanhThu.TabIndex = 0x70;
            this.AdvTKDoanhThu.UpperText = true;
            this.AdvTKDoanhThu.Value = "";
            this.AdvTKDoanhThu.WithCode = 80;
            this.AdvTaiKhoanThue.Conditions = "";
            this.AdvTaiKhoanThue.DefaultValue = "3331";
            this.AdvTaiKhoanThue.FieldNameFilter = "";
            this.AdvTaiKhoanThue.KeyFilter = "";
            point = new Point(0x62, 0x63);
            this.AdvTaiKhoanThue.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanThue.Margin = padding;
            this.AdvTaiKhoanThue.Name = "AdvTaiKhoanThue";
            this.AdvTaiKhoanThue.OnlyDigit = false;
            this.AdvTaiKhoanThue.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTaiKhoanThue.Size = size;
            this.AdvTaiKhoanThue.TabIndex = 110;
            this.AdvTaiKhoanThue.UpperText = true;
            this.AdvTaiKhoanThue.Value = "";
            this.AdvTaiKhoanThue.WithCode = 80;
            this.AdvTaiKhoanChu.Conditions = "";
            this.AdvTaiKhoanChu.DefaultValue = "131";
            this.AdvTaiKhoanChu.FieldNameFilter = "";
            this.AdvTaiKhoanChu.KeyFilter = "";
            point = new Point(0x62, 0x4a);
            this.AdvTaiKhoanChu.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanChu.Margin = padding;
            this.AdvTaiKhoanChu.Name = "AdvTaiKhoanChu";
            this.AdvTaiKhoanChu.OnlyDigit = false;
            this.AdvTaiKhoanChu.ReadOnly = false;
            size = new Size(0x107, 20);
            this.AdvTaiKhoanChu.Size = size;
            this.AdvTaiKhoanChu.TabIndex = 0x6c;
            this.AdvTaiKhoanChu.UpperText = true;
            this.AdvTaiKhoanChu.Value = "";
            this.AdvTaiKhoanChu.WithCode = 80;
            this.CKXoaDuLieu.AutoSize = true;
            this.CKXoaDuLieu.Checked = true;
            this.CKXoaDuLieu.CheckState = CheckState.Checked;
            point = new Point(0x62, 0xaf);
            this.CKXoaDuLieu.Location = point;
            this.CKXoaDuLieu.Name = "CKXoaDuLieu";
            size = new Size(0x8a, 0x11);
            this.CKXoaDuLieu.Size = size;
            this.CKXoaDuLieu.TabIndex = 0x39;
            this.CKXoaDuLieu.Text = "X\x00f3a dữ liệu tại m\x00e1y trạm";
            this.CKXoaDuLieu.UseVisualStyleBackColor = true;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x13b, 0xd4);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x52, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x3d;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xe8, 0xd4);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x51, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 60;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            point = new Point(1, 0xd4);
            this.CmdTuyChon.Location = point;
            this.CmdTuyChon.Name = "CmdTuyChon";
            size = new Size(0x23, 0x18);
            this.CmdTuyChon.Size = size;
            this.CmdTuyChon.TabIndex = 0x3e;
            this.CmdTuyChon.Text = "<<";
            this.CmdTuyChon.UseVisualStyleBackColor = true;
            point = new Point(100, 0x23);
            this.TxtTenMay.Location = point;
            this.TxtTenMay.Name = "TxtTenMay";
            size = new Size(0xf9, 20);
            this.TxtTenMay.Size = size;
            this.TxtTenMay.TabIndex = 0x3f;
            point = new Point(100, 0x3d);
            this.TxtUser.Location = point;
            this.TxtUser.Name = "TxtUser";
            size = new Size(0xf9, 20);
            this.TxtUser.Size = size;
            this.TxtUser.TabIndex = 0x40;
            point = new Point(100, 0x57);
            this.TxtPass.Location = point;
            this.TxtPass.Name = "TxtPass";
            this.TxtPass.PasswordChar = '*';
            size = new Size(0xf9, 20);
            this.TxtPass.Size = size;
            this.TxtPass.TabIndex = 0x41;
            point = new Point(100, 0x71);
            this.TxtData.Location = point;
            this.TxtData.Name = "TxtData";
            size = new Size(0xf9, 20);
            this.TxtData.Size = size;
            this.TxtData.TabIndex = 0x42;
            this.Label1.AutoSize = true;
            point = new Point(0x17, 0x26);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(50, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x43;
            this.Label1.Text = "M\x00e1y trạm";
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.Label5);
            this.GroupBox2.Controls.Add(this.Label4);
            this.GroupBox2.Controls.Add(this.Label2);
            this.GroupBox2.Controls.Add(this.TxtTenMay);
            this.GroupBox2.Controls.Add(this.Label1);
            this.GroupBox2.Controls.Add(this.TxtUser);
            this.GroupBox2.Controls.Add(this.TxtData);
            this.GroupBox2.Controls.Add(this.TxtPass);
            point = new Point(1, 0xf2);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x163, 150);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x44;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Th\x00f4ng tin database";
            this.Label5.AutoSize = true;
            point = new Point(0x17, 0x74);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x35, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 70;
            this.Label5.Text = "Database";
            this.Label4.AutoSize = true;
            point = new Point(0x17, 90);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x35, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x45;
            this.Label4.Text = "Password";
            this.Label2.AutoSize = true;
            point = new Point(0x17, 0x40);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x37, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x44;
            this.Label2.Text = "Username";
            point = new Point(0x144, 0x18e);
            this.CmdAn.Location = point;
            this.CmdAn.Name = "CmdAn";
            size = new Size(0x24, 0x18);
            this.CmdAn.Size = size;
            this.CmdAn.TabIndex = 0x45;
            this.CmdAn.Text = ">>";
            this.CmdAn.UseVisualStyleBackColor = true;
            point = new Point(0xb9, 0x18e);
            this.CmdSave.Location = point;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x85, 0x18);
            this.CmdSave.Size = size;
            this.CmdSave.TabIndex = 70;
            this.CmdSave.Text = "Lưu th\x00f4ng tin databse";
            this.CmdSave.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x191, 0xed);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdSave);
            this.Controls.Add(this.CmdAn);
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.CmdTuyChon);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.MinimizeBox = false;
            this.Name = "Frm_GetData";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BH-0013";
            this.Text = "NHAN DU LIEU";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            this.ResumeLayout(false);
        }

        public void LoadDataMayChu()
        {
            this.objDT.Load("01");
            clsDataChiNhanh objDT = this.objDT;
            this.TxtTenMay.Text = objDT.TenMayChu;
            this.TxtUser.Text = objDT.DbUser;
            this.TxtPass.Text = objDT.DbPass;
            this.TxtData.Text = objDT.DbName;
            this.CboKho.SelectedValue = objDT.KhoaKho;
            objDT = null;
        }

        internal virtual ADVAccount AdvTaiKhoanChu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanChu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanChu = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoanThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanThue = value;
            }
        }

        internal virtual ADVAccount AdvTKChietKhau
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKChietKhau;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKChietKhau = value;
            }
        }

        internal virtual ADVAccount AdvTKDoanhThu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKDoanhThu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKDoanhThu = value;
            }
        }

        internal virtual ADVAccount AdvTKGiaVon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKGiaVon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKGiaVon = value;
            }
        }

        internal virtual ADVAccount AdvTKHangHoa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKHangHoa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKHangHoa = value;
            }
        }

        internal virtual ComboBox CboKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKho = value;
            }
        }

        internal virtual CheckBox CKXoaDuLieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKXoaDuLieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKXoaDuLieu = value;
            }
        }

        internal virtual Button CmdAn
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAn;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAn_Click);
                if (this._CmdAn != null)
                {
                    this._CmdAn.Click -= handler;
                }
                this._CmdAn = value;
                if (this._CmdAn != null)
                {
                    this._CmdAn.Click += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Button CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual Button CmdTuyChon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTuyChon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTuyChon_Click);
                if (this._CmdTuyChon != null)
                {
                    this._CmdTuyChon.Click -= handler;
                }
                this._CmdTuyChon = value;
                if (this._CmdTuyChon != null)
                {
                    this._CmdTuyChon.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label26
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label26;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label26 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual TextBox TxtData
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtData;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtData = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtPass
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtPass;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtPass = value;
            }
        }

        internal virtual TextBox TxtTenMay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenMay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenMay = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTuNgay = value;
            }
        }

        internal virtual TextBox TxtUser
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtUser;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtUser = value;
            }
        }
    }
}

